﻿using System;

namespace Student
{
    class StudentTest
    {
        static void Main(string[] args)
        {
            Student pesho = new Student("besho", "peshev","peshistiq","0889345678","2");
            Student shano = new Student("aesho", "peshev", "peshistiq", "0889345678", "1");
            Student normal = new Student("pesho", "peshev", "peshistiq", "0889345678", "3");

            Console.WriteLine(pesho.Equals(shano));
            Console.WriteLine(pesho.Equals(normal));
            Console.WriteLine((pesho == shano));
            Console.WriteLine(pesho == normal);
            Console.WriteLine(pesho);
            Console.WriteLine(pesho.GetHashCode());
            Console.WriteLine(shano.GetHashCode());

            Student kreten = shano.Clone() as Student;

            Console.WriteLine("{0} {1}", shano.FirstName, kreten.FirstName);
            kreten.FirstName = "kreten";
            Console.WriteLine("{0} {1}", shano.FirstName, kreten.FirstName);

            Console.WriteLine(pesho.CompareTo(shano));
        }
    }
}
